package com.lagou.mapper;

import com.lagou.domain.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    public User findUserById(int id);

    public List<User> findAll();

    public List<User> findByIdAndUsername1(int id,String username);

    public List<User> findByIdAndUsername2(@Param("id") int id, @Param("username") String username);

    public List<User> findByIdAndUsername3(User user);

    public List<User> findByUsername1(@Param("username") String username);

    public List<User> findByIdAndUserIf(User user);

    public void updateif(User user);

    public List<User> findByList(List<Integer> ids);

    public List<User> findByArray(Integer[] ids);

    public List<User> findAllWithOrder();

    public List<User> findAllWithRole();

}
